package com.yf.entity;

import com.yf.anno.TextAudit;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

/*********************************************************
 ** 学生实体模型
 ** <br><br>
 ** @ClassName: Student
 ** @author: yangfeng
 ** @date: 2024/10/18 9:27
 ** @version: 1.0.0
 *********************************************************/
@Data
public class Student implements Serializable {
    @NotBlank(message = "用户名不能为空")
    @TextAudit(message = "姓名存在不合法字样")
    private String name;
    @Min(value = 18, message = "必须成年")
    @Max(value = 120, message = "不得超过年龄极限")
    private Integer age;
}
